package com.java.annotation.ex2;

public class Test {
	public static void main(String args[]) {
		String tableName = "";
		Class<User> clazz = User.class;
		if(clazz.isAnnotationPresent(Table.class)){
			Table table = (Table)clazz.getAnnotation(Table.class);
			tableName = table.name();
		}
		System.out.println("result --- " + tableName);
	}
}
